@extends('Agent.temple')
@section('content')
    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i>
        <a  style="text-decoration:none" href="{{ route('index') }}">首页 <span class="c-gray en"></a>&gt;
        </span> 用户任务管理 <span class="c-gray en">&gt;
        </span> <a  style="text-decoration:none" href="{{ route('applylist') }}">用户领取任务管理</a>&gt;
        </span> <a  style="text-decoration:none" href="#">用户申请进度 <span class="c-gray en"></a>

        {{--<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a--}}
    </nav>    <article class="page-container">
        <div  class="form form-horizontal" id="form-member-add" novalidate="novalidate" url="{{ Request::getRequestUri() }}">
            {{--post提交:CSRF 保护,from表单提交必填--}}
            {{ csrf_field() }}
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3">申请人账号：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <label class="from_label">{{ $_GET['nodecode'] }}</label>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3">推荐的vip个数：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <label class="from_label">{{ isset($list['invite_vip'])?$list['invite_vip']:0 }}</label>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3">手机基础任务个数：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <label class="from_label">{{ isset($list['base_task'])?$list['base_task']:0 }}</label>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3">手机总任务个数：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <label class="from_label">{{ isset($list['total_task'])?$list['total_task']:0 }}</label>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3">申请手机详情：</label>
                <div class="formControls col-xs-3 col-sm-3">
                    <table class="table table-border table-bordered table-bg table-sort">
                        <tbody>
                                <tr class="text-c" >
                                    <td>手机型号</td>
                                    <td>{{ $_GET['mobile_title'] }}</td>
                                </tr>
                                <tr class="text-c" >
                                    <td>内存</td>
                                    <td>{{ $mobileInfo->rom }}</td>
                                </tr>
                                <tr class="text-c" >
                                    <td>cpu型号</td>
                                    <td>{{ $mobileInfo->cpu }}</td>
                                </tr>
                                <tr class="text-c" >
                                    <td>像素</td>
                                    <td>{{ $mobileInfo->camera }}</td>
                                </tr>
                                <tr class="text-c" >
                                    <td>屏幕尺寸</td>
                                    <td>{{ $mobileInfo->screen }}</td>
                                </tr>
                                <tr class="text-c" >
                                    <td>网络</td>
                                    <td>{{ $mobileInfo->net }}</td>
                                </tr>
                                <tr class="text-c" >
                                    <td>成本价</td>
                                    <td>{{ $mobileInfo->cost_price }}</td>
                                </tr>
                                <tr class="text-c" >
                                    <td>市场价</td>
                                    <td>{{ $mobileInfo->market_price }}</td>
                                </tr>
                                <tr class="text-c" >
                                    <td>销售价</td>
                                    <td>{{ $mobileInfo->sell_price }}</td>
                                </tr>
                                <tr class="text-c" >
                                    <td>分期数量</td>
                                    <td>{{ $mobileInfo->return_num }}</td>
                                </tr>
                                <tr class="text-c" >
                                    <td>库存</td>
                                    <td>{{ $mobileInfo->store_num }}</td>
                                </tr>
                                <tr class="text-c" >
                                    <td>销量</td>
                                    <td>{{ $mobileInfo->sell_price }}</td>
                                </tr>
                                <tr class="text-c" >
                                    <td>基础任务个数</td>
                                    <td>{{ $mobileInfo->base_task }}</td>
                                </tr>
                                <tr class="text-c" >
                                    <td>手机状态</td>
                                    <td>
                                        @if ($mobileInfo->status==0)
                                            已删除
                                        @elseif ($mobileInfo->status==1)
                                            正常
                                        @elseif ($mobileInfo->status==2)
                                            已停止领取
                                        @endif
                                    </td>
                                </tr>

                        </tbody>
                    </table>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3">任务申请进度：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <label class="from_label">
                        @if (isset($list['step']))
                            @if ($list['step']==0)
                                    等待提交资料
                            @elseif ($list['step']==1)
                                    提交资料，等待完成基础任务
                            @elseif ($list['step']==2)
                                    完成基础任务，等待提交预约
                            @elseif ($list['step']==3)
                                    预约成功,等待去线下领取手机
                            @elseif ($list['step']==4)
                                    领取成功，等待完成手续任务
                            @elseif ($list['step']==5)
                                    所有任务完成
                            @endif
                        @endif
                    </label>
                </div>
            </div>

        </div>
    </article>
@endsection
<script type="text/javascript" src="{{asset('/js/jquery/1.9.1/jquery.min.js')}}"></script>
<script src="{{asset('/js/agent/apply.detial.js')}}"></script>


